﻿using System.Collections.Generic;

using SBPweb.RIA.Shared.Contracts.Extensibility;

using SBPweb.RIA.Client.Common.Text;

namespace SBPweb.PROvibe.Client.Library.Base
{

    public class InitialParameters : ExtendableBase
    {

        #region Constructor logic

        public InitialParameters()
        {
        }

        public InitialParameters(IDictionary<string, string> dict)
        {
            foreach (KeyValuePair<string, string> kvp in dict)
            {
                this.Put<string>(kvp.Key, kvp.Value);
            }
        }

        public InitialParameters(IDictionary<string, string> dict, bool useDecrypt)
            : this(useDecrypt ? InitialParametersHandler.DecryptParameters(dict) : dict)
        {

        }

        #endregion

    }

}